MailPoet\Subscribers\SubscribersRepository A

Total Complexity 68
Dependencies 18
Dependents 67
Total lines 652
Lines of code 488
Logical lines of code 164
Comment lines 74
Methods 43
Properties 4

Methods 43

Method Rating Maintainability Complexity Lines of code
addTagToSubscribers()
S
53 3 23
addSubscribersToSegment()
S
53 3 23
bulkDelete()
S
48 2 36
getWooCommerceSegmentSubscriber()
S
57 2 17
removeSubscribersFromAllSegments()
S
58 2 16
bulkRestore()
S
59 2 15
maybeUpdateLastEngagement()
S
67 3 8
maybeUpdateLastPageViewAt()
S
66 3 9
maybeUpdateLastClickAt()
S
66 3 9
maybeUpdateLastPurchaseAt()
S
66 3 9
maybeUpdateLastOpenAt()
S
66 3 9
bulkUpdateLastSendingAt()
S
60 2 14
bulkTrash()
S
60 2 14
bulkRemoveTag()
S
60 2 13
bulkUpdateEngagementScoreUpdatedAt()
S
62 2 13
bulkRemoveFromSegment()
S
60 2 13
getListLevelCountsOfSubscribedAfter()
S
57 1 18
getListLevelCountsOfUnsubscribedAfter()
S
59 1 16
bulkMoveToSegment()
S
66 2 9
woocommerceUserExists()
S
60 1 15
removeOrphanedSubscribersFromWpSegment()
S
59 1 15
getCurrentWPUser()
S
68 2 7
findExclusiveSubscribersBySegment()
S
61 1 13
getCountOfUnsubscribedAfter()
S
62 1 12
findByUpdatedScoreNotInLastMonth()
S
62 1 12
bulkUnsubscribe()
S
62 1 12
getCountOfLastSubscribedAfter()
S
64 1 11
bulkAddTag()
S
73 1 5
removeByWpUserIds()
S
67 1 8
__construct()
S
71 1 6
findIdsOfDeletedByEmails()
S
66 1 9
getMaxSubscriberId()
S
68 1 8
getUndeletedSubscribersEmailsByIds()
S
65 1 10
getEntityClassName()
S
82 1 3
findIdAndEmailByEmails()
S
68 1 8
findWpUserIdAndEmailByEmails()
S
68 1 8
bulkAddToSegment()
S
73 1 5
bulkRemoveFromAllSegments()
S
73 1 5
findBySegment()
S
66 1 9
invalidateTotalSubscribersCache()
S
81 1 3
getCountOfSubscribersForStates()
S
65 1 10
getTotalSubscribers()
S
70 1 7
getCurrentDateTime()
S
79 1 3